package com.swift.bean;

public class LoginUser extends NameEntity{
	
	public static final int ORG_BRANCH = 0;
	public static final int ORG_COMPANY = 1;
	public static final int ORG_MAINTEN = 6;
	
	private int depart_type;
	private String depart_name;
	private String account;
	private int depart_id;
	private String depart_code;
	
	private static LoginUser instance ;
	
	//部门的类型为机构+10；
	public int getDepart_type() {
		return (depart_type<10)?depart_type : depart_type - 10 ;
	}
	public void setDepart_type(int depart_type) {
		this.depart_type = depart_type;
	}
	public String getDepart_name() {
		return depart_name;
	}
	public void setDepart_name(String depart_name) {
		this.depart_name = depart_name;
	}
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public int getDepart_id() {
		return depart_id;
	}
	public void setDepart_id(int depart_id) {
		this.depart_id = depart_id;
	}
	
	public static void setInstance(LoginUser user) {
		instance = user;
	}
	
	public static LoginUser getInstance() {
		return instance;
	}
	public String getDepart_code() {
		return depart_code;
	}
	public void setDepart_code(String depart_code) {
		this.depart_code = depart_code;
	}

}
